package sxe.core;

import snobject.snBoolean;
import snobject.snNil;
import snobject.snObject;
import snobject.snObjectArgList;
import step.EvaluationFailure;
import step.FunctionWrapper;

public class isnil extends FunctionWrapper {

	@Override
	public snObject Call(snObjectArgList argv) throws EvaluationFailure,
			ClassCastException {
		snObject sno = argv.popObject();
		if(sno == snNil.NIL)
			return snBoolean.TRUE;		
		return snBoolean.FALSE;
	}

}
